/* 变换控制组件样式 */

.controls {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;

  h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
  }

  h4 {
    color: #34495e;
    margin: 20px 0 10px 0;
  }
}

.transformTypeSelector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;

  label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;

    &:hover {
      background: #e8f4fd;
    }

    input[type="radio"] {
      margin: 0;
    }
  }
}

.transformParameters {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;

  label {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .note {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
  }
}

.applyButton {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.2s;
  width: 100%;

  &:hover {
    background: #2980b9;
  }

  &:active {
    transform: translateY(1px);
  }
}

.actionButtons {
  display: flex;
  gap: 10px;
  margin: 15px 0;

  button {
    flex: 1;
    background: #95a5a6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;

    &:hover {
      background: #7f8c8d;
    }

    &:active {
      transform: translateY(1px);
    }
  }
}

.dataControls {
  margin-top: 20px;

  h4 {
    margin-bottom: 10px;
  }

  button {
    display: block;
    width: 100%;
    margin: 5px 0;
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;

    &:hover {
      background: #219a52;
    }

    &:active {
      transform: translateY(1px);
    }
  }
}